// 1.0 导入vue核心包
import Vue from 'vue';

// 2.0 导入App.vue的vue对象
import App from './App.vue';

import vueRouter from 'vue-router';



Vue.use(vueRouter);

import login from './components/account/login.vue'
import register from './components/account/register.vue'

var router = new vueRouter({
	routes:[
		{path:'/login',component:login},
		{path:'/register',component:register}
	]
})

import Mint from 'mint-ui';
import'mint-ui/lib/style.min.css';
Vue.use(Mint);


// 3.0 利用Vue对象进行解析渲染
new Vue({
	el:'#app',
	router,
	// render:function(create){create(App)} //es5的写法
	render:c=>c(App)  // es6的函数写法 =>：goes to
});

